package com.xyz.entity.request;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 夏永泽
 * @date 2022/4/1
 */

public class AddUserRequest extends BaseIdNumber{
    @NotNull(message = "角色不能为空")
    Integer role;
    String phoneNumber;
    @NotNull(message = "姓名不能为空")
    String name;
    @NotNull(message = "密码不能为空")
    String password;

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "AddUserRequest{" +
                "role=" + role +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
